// ==================== 订阅页面样式 ====================

/**
 * 订阅页面主容器
 * @description 定义订阅页面的整体布局和样式
 */

.subscribe-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}


/**
 * 主要内容区域
 * @description 定义页面主要内容的布局
 */

.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}


/**
 * 内容包装器
 * @description 限制内容宽度并居中显示
 */

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}


/**
 * 页面标题区域
 * @description 定义页面标题和描述的样式
 */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    .page-title {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .page-description {
        font-size: 1.2rem;
        color: #7f8c8d;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }
}


/**
 * 示例数据提示
 * @description 定义示例数据提示的样式
 */

.sample-data-notice {
    margin-bottom: 2rem;
    
    .el-alert {
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.2);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        backdrop-filter: blur(10px);
        
        .el-alert__title {
            color: #667eea;
            font-weight: 600;
        }
        
        .el-alert__description {
            color: rgba(44, 62, 80, 0.8);
            font-size: 13px;
        }
        
        .el-alert__icon {
            color: #667eea;
        }
    }
}

/**
 * 订阅内容区域
 * @description 定义订阅功能区域的布局
 */

.subscribe-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}


/**
 * 订阅区域
 * @description 定义每个订阅功能区域的样式
 */

.subscribe-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    &:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
}


/**
 * 区域头部
 * @description 定义区域标题和图标的样式
 */

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    .section-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    .section-title {
        font-size: 1.8rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }
    .section-description {
        color: #7f8c8d;
        margin: 0.5rem 0 0 0;
        font-size: 1rem;
        line-height: 1.5;
    }
}


/**
 * 邮件订阅表单
 * @description 定义邮件订阅表单的样式
 */

.subscribe-form {
    .form-row {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        @media (max-width: 768px) {
            flex-direction: column;
        }
    }
    .email-input {
        flex: 1;
        margin-bottom: 0;
        @media (max-width: 768px) {
            margin-bottom: 1rem;
        }
    }
    .subscribe-btn {
        min-width: 120px;
        height: 40px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
    }
    .subscribe-options {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
        @media (max-width: 768px) {
            flex-direction: column;
            gap: 1rem;
        }
        .option-item {
            color: #2c3e50;
            font-size: 0.9rem;
        }
    }
}


/**
 * 订阅状态显示
 * @description 定义订阅状态提示的样式
 */

.subscribe-status {
    margin-top: 1.5rem;
}


/**
 * RSS订阅源列表
 * @description 定义RSS订阅源项目的样式
 */

.rss-sources {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}


/**
 * RSS订阅源项目
 * @description 定义单个RSS订阅源的样式
 */

.rss-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    &:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(102, 126, 234, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    @media (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .rss-info {
        flex: 1;
        .rss-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
            margin: 0 0 0.5rem 0;
        }
        .rss-description {
            color: #7f8c8d;
            margin: 0;
            font-size: 0.9rem;
        }
    }
    .rss-actions {
        display: flex;
        gap: 0.5rem;
        flex-shrink: 0;
        @media (max-width: 768px) {
            width: 100%;
            justify-content: flex-end;
        }
    }
}


/**
 * RSS使用说明
 * @description 定义RSS使用指南的样式
 */

.rss-guide {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    .guide-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0 0 1.5rem 0;
    }
    .guide-steps {
        display: grid;
        gap: 1.5rem;
    }
    .guide-step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        .step-number {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        .step-content {
            flex: 1;
            h4 {
                font-size: 1rem;
                font-weight: 600;
                color: #2c3e50;
                margin: 0 0 0.5rem 0;
            }
            p {
                color: #7f8c8d;
                margin: 0;
                font-size: 0.9rem;
                line-height: 1.5;
            }
        }
    }
}


/**
 * 订阅统计
 * @description 定义订阅统计数据的样式
 */

.subscribe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}


/**
 * 统计项目
 * @description 定义单个统计数据的样式
 */

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    &:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: #667eea;
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .stat-label {
        color: #7f8c8d;
        font-size: 0.9rem;
        font-weight: 500;
    }
}

// ==================== 响应式设计 ====================

/**
 * 移动端适配
 * @description 针对移动设备的样式调整
 */

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    .page-header {
        .page-title {
            font-size: 2rem;
        }
        .page-description {
            font-size: 1rem;
        }
    }
    .subscribe-section {
        padding: 1.5rem;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        .section-icon {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        .section-title {
            font-size: 1.5rem;
        }
    }
    .subscribe-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item {
        padding: 1rem;
        .stat-number {
            font-size: 2rem;
        }
    }
}


/**
 * 平板端适配
 * @description 针对平板设备的样式调整
 */

@media (min-width: 769px) and (max-width: 1024px) {
    .subscribe-content {
        grid-template-columns: 1fr;
    }
    .subscribe-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}


/**
 * 桌面端适配
 * @description 针对桌面设备的样式优化
 */

@media (min-width: 1025px) {
    .subscribe-content {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
}

// ==================== 深色主题支持 ====================

/**
 * 深色主题样式
 * @description 当系统处于深色模式时的样式调整
 */

@media (prefers-color-scheme: dark) {
    .subscribe-section {
        background: rgba(30, 30, 30, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        .section-title {
            color: #ecf0f1;
        }
        .section-description {
            color: #bdc3c7;
        }
    }
    .rss-item {
        background: rgba(30, 30, 30, 0.8);
        border-color: rgba(102, 126, 234, 0.2);
        &:hover {
            background: rgba(30, 30, 30, 0.95);
        }
        .rss-title {
            color: #ecf0f1;
        }
        .rss-description {
            color: #bdc3c7;
        }
    }
    .rss-guide {
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
        .guide-title {
            color: #ecf0f1;
        }
        .step-content h4 {
            color: #ecf0f1;
        }
        .step-content p {
            color: #bdc3c7;
        }
    }
    .stat-item {
        background: rgba(30, 30, 30, 0.8);
        border-color: rgba(102, 126, 234, 0.2);
        &:hover {
            background: rgba(30, 30, 30, 0.95);
        }
        .stat-label {
            color: #bdc3c7;
        }
    }
    .subscribe-options .option-item {
        color: #ecf0f1;
    }
}